<!DOCTYPE html>
<html lang="en" xmlns:th="">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:replace="${title}">博客详情</title>
</head>
<body>

<!--导航-->
<nav th:fragment="menu(n)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">后台管理</h2>
            <a th:href="@{/admin/blogs}" class="m-item item m-mobile-hide" th:classappend="${n==1} ? 'active'"><i
                    class="home icon"></i> 博客管理</a>
            <a th:href="@{/admin/types}" class="m-item item m-mobile-hide" th:classappend="${n==2} ? 'active'"><i
                    class="idea icon"></i> 分类管理</a>
            <a th:href="@{/admin/tags}" class="m-item item m-mobile-hide" th:classappend="${n==3} ? 'active'"><i
                    class="tags icon"></i> 标签管理</a>
            <!-- 登录之后显示个人信息 -->
            <div class="right m-item menu">
                <div class="ui dropdown m-mobile-hide item">
                    <div class="text">
                        <img alt="" class="ui avatar image"
                             th:src="@{${session.user.avatar}}">
                        <span th:text="${session.user.nickname}"></span>
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a th:href="@{/admin/loginOut}" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <a href="javascript:void(0)" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>


<!--底部footer-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid" style="margin: 0 auto;">
            <div class="three wide column">
                <div class="ui  inverted link list">
                    <div class="item">
                        <img src="../static/images/zfb.png" class="ui rounded image" alt=""
                             style="width: 180px; margin-left: -60px;">
                    </div>
                </div>

            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">测试链接</a>
                    <a href="#" class="item">测试链接</a>
                    <a href="#" class="item">测试链接</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted  header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">测试链接</a>
                    <a href="#" class="item">测试链接</a>
                    <a href="#" class="item">测试链接</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted  header">随笔</h4>
                <p>理性的人追求的并非快乐，而只是避免痛苦。</p>
            </div>
        </div>
        <div class="ui section divider"></div>
        <div class="three wide column">
            <h4 class="ui inverted  header">友情链接</h4>
            <div class="ui inverted link list">
                <a href="#" class="item">测试链接</a>
                <a href="#" class="item">测试链接</a>
                <a href="#" class="item">测试链接</a>
            </div>
        </div>
        <br>
        <br>
        <a href="#" target="_blank"
           style="text-decoration: none;color:rgb(102,102,102);font-size: 5px ">Copyright©2021-至今 |
            渝ICP备2021001049号-2|</a>
    </div>
</footer>
</body>
</html>